{% extends "bootstrap/base.html" %}

{% block title %}School complaint system{% endblock %}

{% block head %}
    {{ super() }}

    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}">
{% endblock %}
{% block scripts %}
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    {{ super() }}
{%- endblock scripts %}
{% block navbar %}
    <div class="navbar navbar-inverse" style="background-color:#209e85;" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="{{ url_for('main.home') }}">
                    <img style="width:120px;height:40px;" src="{{ url_for('static', filename='回访.png') }}">
                </a>
            </div>
            <div class="navbar-collapse collapse" style="font-family:'微软雅黑';font-size:20px;">
                <ul class="nav navbar-nav navbar-right">
                    {% if current_user.is_authenticated %}
                        <li><a href="{{ url_for('auth.logout') }}" style="color: #f0f0f0;">Exit</a></li>
                    {% else %}
                        <li><a href="{{ url_for('auth.login') }}" style="color: #f0f0f0;">Sign in</a></li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </div>
{% endblock %}

{% block content %}
    <div class="container">
        {% for message in get_flashed_messages() %}
            <div class="alert alert-warning">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ message }}
            </div>
        {% endfor %}
    </div>

    <div class="container">
        {% block page_content %}{% endblock %}
    </div>
{% endblock %}

